package bosque.unc.exceptions;

import bosque.unc.enumerations.Mensajes;

public class CoordenadaException extends Exception {

	  /**
	 * 
	 */
	private static final long serialVersionUID = 1000L;
	private int errorCode;
	  private String errorMsg;

	  public CoordenadaException(Mensajes code) {
	    this.errorMsg = code.getMsg();
	    this.errorCode = code.getId();
	  }

	  public int getErrorCode() {
	    return errorCode;
	  }

	  public String getErrorMsg() {
	    return errorMsg;
	  }
	}